<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:NEXTControl="using:MetroNextTools.NControls"
                    xmlns:NEXTPanel="using:MetroNextTools.NPanel">


    <Style TargetType="NEXTControl:NItemsPresenter">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="NEXTControl:NItemsPresenter">
                    <Grid x:Name="PART_Grid">
                        <NEXTPanel:NWaterWallPanel x:Name="PART_Container" Margin="{TemplateBinding Padding}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="NEXTControl:NItemsControl">
        <!--  <Setter Property="Padding" Value="0,0,0,10" />  -->
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="NEXTControl:NItemsControl">
                    <Border x:Name="PART_ContainerBorder"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <ScrollViewer x:Name="PART_ScrollContainer"
                                      HorizontalScrollBarVisibility="Visible"
                                      VerticalScrollBarVisibility="Disabled"
                                      VerticalScrollMode="Disabled">
                            <NEXTControl:NItemsPresenter x:Name="PART_ItemsPresenter"
                                                         Margin="0,6,0,0"
                                                         Padding="{TemplateBinding Padding}" />
                        </ScrollViewer>
                    </Border>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
